package com.travelplanning.admin.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_comment")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CommentDO {
    /**
     * id
     */
    private Long id;

    /**
     * 文章id
     */
    private String contentId;

    /**
     * 评论用户id
     */
    private String userId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 评论内容
     */
    private String article;

    /**
     * 评论发布时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 删除标识
     */
    private int delFlag;
}
